package com.csdj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csdj.mapper.EnterpriseTalentMapper;
import com.csdj.pojo.EnterpriseTalent;
import com.csdj.service.EnterpriseTalentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EnterpriseTalentServiceImpl extends ServiceImpl<EnterpriseTalentMapper, EnterpriseTalent> implements EnterpriseTalentService {
    @Autowired
    private EnterpriseTalentMapper enterpriseTalentMapper;

    @Override
    public List<EnterpriseTalent> selectAll(Integer id) {
        return enterpriseTalentMapper.selectAll(id);
    }

    @Override
    public int addEnterpriseTalent(EnterpriseTalent enterpriseTalent) {
        return enterpriseTalentMapper.addEnterpriseTalent(enterpriseTalent);
    }

    @Override
    public int updateEnterpriseTalent(EnterpriseTalent enterpriseTalent) {
        return enterpriseTalentMapper.updateEnterpriseTalent(enterpriseTalent);
    }
}
